///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version May 26 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "wxformb_gui.h"

///////////////////////////////////////////////////////////////////////////
using namespace PBot::GUI;

FrmPBot::FrmPBot( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* szrMain;
	szrMain = new wxBoxSizer( wxVERTICAL );
	
	panelBG = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxFlexGridSizer* szrGlobal;
	szrGlobal = new wxFlexGridSizer( 2, 1, 0, 0 );
	szrGlobal->SetFlexibleDirection( wxBOTH );
	szrGlobal->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	wxFlexGridSizer* szrModules;
	szrModules = new wxFlexGridSizer( 2, 2, 0, 5 );
	szrModules->SetFlexibleDirection( wxBOTH );
	szrModules->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	wxStaticBoxSizer* szrInfoBox;
	szrInfoBox = new wxStaticBoxSizer( new wxStaticBox( panelBG, wxID_ANY, wxT("Info") ), wxVERTICAL );
	
	wxFlexGridSizer* szrInfo;
	szrInfo = new wxFlexGridSizer( 2, 2, 0, 0 );
	szrInfo->SetFlexibleDirection( wxBOTH );
	szrInfo->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	stxtUsername = new wxStaticText( panelBG, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtUsername->Wrap( -1 );
	szrInfo->Add( stxtUsername, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	tctrlUsername = new wxTextCtrl( panelBG, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 160,-1 ), wxTE_READONLY );
	szrInfo->Add( tctrlUsername, 0, wxALL|wxEXPAND, 5 );
	
	stxtGame = new wxStaticText( panelBG, wxID_ANY, wxT("Game:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtGame->Wrap( -1 );
	szrInfo->Add( stxtGame, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	tctrlGame = new wxTextCtrl( panelBG, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	szrInfo->Add( tctrlGame, 0, wxALL|wxEXPAND, 5 );
	
	szrInfoBox->Add( szrInfo, 1, wxEXPAND, 5 );
	
	szrModules->Add( szrInfoBox, 1, wxEXPAND, 5 );
	
	wxStaticBoxSizer* szrExtraBox;
	szrExtraBox = new wxStaticBoxSizer( new wxStaticBox( panelBG, wxID_ANY, wxT("Extra") ), wxVERTICAL );
	
	wxFlexGridSizer* szrExtra;
	szrExtra = new wxFlexGridSizer( 2, 2, 0, 0 );
	szrExtra->SetFlexibleDirection( wxBOTH );
	szrExtra->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	btnSettings = new wxButton( panelBG, wxID_ANY, wxT("Settings..."), wxDefaultPosition, wxDefaultSize, 0 );
	szrExtra->Add( btnSettings, 0, wxALL|wxEXPAND, 5 );
	
	btnDonate = new wxBitmapButton( panelBG, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
	szrExtra->Add( btnDonate, 0, wxALL|wxEXPAND, 5 );
	
	btnWebsite = new wxButton( panelBG, wxID_ANY, wxT("Website..."), wxDefaultPosition, wxDefaultSize, 0 );
	szrExtra->Add( btnWebsite, 0, wxALL|wxEXPAND, 5 );
	
	btnAbout = new wxButton( panelBG, wxID_ANY, wxT("About..."), wxDefaultPosition, wxDefaultSize, 0 );
	szrExtra->Add( btnAbout, 0, wxALL|wxEXPAND, 5 );
	
	szrExtraBox->Add( szrExtra, 1, wxEXPAND, 5 );
	
	szrModules->Add( szrExtraBox, 1, wxEXPAND, 5 );
	
	wxStaticBoxSizer* szrBottleCollect;
	szrBottleCollect = new wxStaticBoxSizer( new wxStaticBox( panelBG, wxID_ANY, wxT("BottleCollect") ), wxVERTICAL );
	
	wxFlexGridSizer* szrBottleCollectInner;
	szrBottleCollectInner = new wxFlexGridSizer( 2, 1, 0, 0 );
	szrBottleCollectInner->SetFlexibleDirection( wxBOTH );
	szrBottleCollectInner->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	prgBar = new wxGauge( panelBG, wxID_ANY, 100, wxDefaultPosition, wxSize( 240,-1 ), wxGA_HORIZONTAL|wxGA_SMOOTH );
	prgBar->SetValue( 0 ); 
	szrBottleCollectInner->Add( prgBar, 1, wxALL|wxEXPAND, 5 );
	
	wxFlexGridSizer* szrBottleCollectStatus;
	szrBottleCollectStatus = new wxFlexGridSizer( 2, 2, 0, 0 );
	szrBottleCollectStatus->SetFlexibleDirection( wxBOTH );
	szrBottleCollectStatus->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	stxtStatus = new wxStaticText( panelBG, wxID_ANY, wxT("Status:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtStatus->Wrap( -1 );
	szrBottleCollectStatus->Add( stxtStatus, 1, wxALL|wxEXPAND, 5 );
	
	stxtStatusInfo = new wxStaticText( panelBG, wxID_ANY, wxT("Disabled"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtStatusInfo->Wrap( -1 );
	szrBottleCollectStatus->Add( stxtStatusInfo, 1, wxALL|wxEXPAND, 5 );
	
	szrBottleCollectInner->Add( szrBottleCollectStatus, 1, wxEXPAND, 5 );
	
	szrBottleCollect->Add( szrBottleCollectInner, 1, wxEXPAND, 5 );
	
	szrModules->Add( szrBottleCollect, 1, wxEXPAND, 5 );
	
	szrGlobal->Add( szrModules, 1, wxALL|wxEXPAND, 5 );
	
	wxStaticBoxSizer* szrStatusBox;
	szrStatusBox = new wxStaticBoxSizer( new wxStaticBox( panelBG, wxID_ANY, wxT("Status") ), wxVERTICAL );
	
	szrStatusBox->SetMinSize( wxSize( -1,150 ) ); 
	tctrlStatus = new wxTextCtrl( panelBG, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), wxHSCROLL|wxTE_AUTO_URL|wxTE_DONTWRAP|wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH );
	szrStatusBox->Add( tctrlStatus, 1, wxALL|wxEXPAND, 5 );
	
	szrGlobal->Add( szrStatusBox, 1, wxALL|wxEXPAND, 5 );
	
	panelBG->SetSizer( szrGlobal );
	panelBG->Layout();
	szrGlobal->Fit( panelBG );
	szrMain->Add( panelBG, 1, wxEXPAND, 5 );
	
	this->SetSizer( szrMain );
	this->Layout();
	
	this->Centre( wxBOTH );
	
	// Connect Events
	this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( FrmPBot::OnClose ) );
	this->Connect( wxEVT_ICONIZE, wxIconizeEventHandler( FrmPBot::OnIconize ) );
	btnSettings->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnSettings ), NULL, this );
	btnDonate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnDonate ), NULL, this );
	btnWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnWebsite ), NULL, this );
	btnAbout->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnAbout ), NULL, this );
}

FrmPBot::~FrmPBot()
{
	// Disconnect Events
	this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( FrmPBot::OnClose ) );
	this->Disconnect( wxEVT_ICONIZE, wxIconizeEventHandler( FrmPBot::OnIconize ) );
	btnSettings->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnSettings ), NULL, this );
	btnDonate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnDonate ), NULL, this );
	btnWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnWebsite ), NULL, this );
	btnAbout->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FrmPBot::OnBtnAbout ), NULL, this );
	
}

DlgLogin::DlgLogin( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* szrMain;
	szrMain = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* szrNeed;
	szrNeed = new wxFlexGridSizer( 2, 2, 0, 0 );
	szrNeed->SetFlexibleDirection( wxBOTH );
	szrNeed->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	stxtUsername = new wxStaticText( this, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtUsername->Wrap( -1 );
	szrNeed->Add( stxtUsername, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	txtUsername = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
	szrNeed->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );
	
	stxtPassword = new wxStaticText( this, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtPassword->Wrap( -1 );
	szrNeed->Add( stxtPassword, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	txtPassword = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
	szrNeed->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
	
	stxtGame = new wxStaticText( this, wxID_ANY, wxT("Game:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtGame->Wrap( -1 );
	szrNeed->Add( stxtGame, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	wxString chcGameChoices[] = { wxT("Pennergame (Hamburg)"), wxT("Pennergame (Berlin)"), wxT("Pennergame (Munich)"), wxT("Dossergame (UK)"), wxT("Menelgame (Warszawa)"), wxT("Menelgame (Krakow)"), wxT("Clodogame (Paris)"), wxT("Clodogame (Marseille)"), wxT("Mendigogame (ES)"), wxT("Serserionline (TK)"), wxT("Bumrise (USA)"), wxT("Faveladogame (BR)"), wxT("Malle (DE)") };
	int chcGameNChoices = sizeof( chcGameChoices ) / sizeof( wxString );
	chcGame = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chcGameNChoices, chcGameChoices, 0 );
	chcGame->SetSelection( 0 );
	szrNeed->Add( chcGame, 0, wxALL|wxEXPAND, 5 );
	
	lnkUserAgent = new wxHyperlinkCtrl( this, wxID_ANY, wxT("User-Agent:"), wxT("http://pb.kicks-ass.org/useragent.html"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
	szrNeed->Add( lnkUserAgent, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	txtUserAgent = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	szrNeed->Add( txtUserAgent, 0, wxALL|wxEXPAND, 5 );
	
	stxtProxy = new wxStaticText( this, wxID_ANY, wxT("[Proxy:]"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtProxy->Wrap( -1 );
	szrNeed->Add( stxtProxy, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	txtProxy = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	szrNeed->Add( txtProxy, 0, wxALL|wxEXPAND, 5 );
	
	
	szrNeed->Add( 0, 0, 1, wxEXPAND, 5 );
	
	szrButtons = new wxStdDialogButtonSizer();
	szrButtonsOK = new wxButton( this, wxID_OK );
	szrButtons->AddButton( szrButtonsOK );
	szrButtonsCancel = new wxButton( this, wxID_CANCEL );
	szrButtons->AddButton( szrButtonsCancel );
	szrButtons->Realize();
	szrNeed->Add( szrButtons, 1, wxALL|wxEXPAND, 5 );
	
	szrMain->Add( szrNeed, 1, wxEXPAND, 5 );
	
	this->SetSizer( szrMain );
	this->Layout();
	szrMain->Fit( this );
}

DlgLogin::~DlgLogin()
{
}

DlgAbout::DlgAbout( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxFlexGridSizer* szrMain;
	szrMain = new wxFlexGridSizer( 2, 2, 0, 0 );
	szrMain->SetFlexibleDirection( wxBOTH );
	szrMain->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	stxtTitle = new wxStaticText( this, wxID_ANY, wxT("PennerBot by microkernel"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
	stxtTitle->Wrap( -1 );
	stxtTitle->SetFont( wxFont( 14, 74, 90, 90, false, wxT("Sans") ) );
	
	szrMain->Add( stxtTitle, 0, wxALL|wxEXPAND, 5 );
	
	
	szrMain->Add( 0, 0, 1, wxEXPAND, 5 );
	
	stxtLicense = new wxStaticText( this, wxID_ANY, wxT("Copyright 2010 by microkernel\n\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions; read LICENSE.txt for details.\nIt is for demonstration purposes only and the usage of this tool is not recommended.\nThe developers disassociate themselves from the abuse of this tool."), wxDefaultPosition, wxDefaultSize, 0 );
	stxtLicense->Wrap( 500 );
	szrMain->Add( stxtLicense, 0, wxALL, 5 );
	
	
	szrMain->Add( 0, 0, 1, wxEXPAND, 5 );
	
	szrButtons = new wxStdDialogButtonSizer();
	szrButtonsOK = new wxButton( this, wxID_OK );
	szrButtons->AddButton( szrButtonsOK );
	szrButtons->Realize();
	szrMain->Add( szrButtons, 1, wxEXPAND, 5 );
	
	this->SetSizer( szrMain );
	this->Layout();
	szrMain->Fit( this );
	
	this->Centre( wxBOTH );
}

DlgAbout::~DlgAbout()
{
}

DlgSettings::DlgSettings( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxFlexGridSizer* szrMain;
	szrMain = new wxFlexGridSizer( 2, 1, 0, 0 );
	szrMain->SetFlexibleDirection( wxBOTH );
	szrMain->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	wxStaticBoxSizer* szrGeneral;
	szrGeneral = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("General") ), wxVERTICAL );
	
	wxFlexGridSizer* szrGInner;
	szrGInner = new wxFlexGridSizer( 2, 2, 0, 0 );
	szrGInner->SetFlexibleDirection( wxBOTH );
	szrGInner->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	stxtUsername = new wxStaticText( this, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtUsername->Wrap( -1 );
	szrGInner->Add( stxtUsername, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	tctrlUsername = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
	szrGInner->Add( tctrlUsername, 0, wxALL|wxEXPAND, 5 );
	
	stxtPassword = new wxStaticText( this, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtPassword->Wrap( -1 );
	szrGInner->Add( stxtPassword, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	tctrlPassword = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
	szrGInner->Add( tctrlPassword, 0, wxALL|wxEXPAND, 5 );
	
	stxtGame = new wxStaticText( this, wxID_ANY, wxT("Game:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtGame->Wrap( -1 );
	szrGInner->Add( stxtGame, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	wxString chcGameChoices[] = { wxT("Pennergame (Hamburg)"), wxT("Pennergame (Berlin)"), wxT("Pennergame (Munich)"), wxT("Dossergame (UK)"), wxT("Menelgame (Warszawa)"), wxT("Menelgame (Krakow)"), wxT("Clodogame (Paris)"), wxT("Clodogame (Marseille)"), wxT("Mendigogame (ES)"), wxT("Serserionline (TK)"), wxT("Bumrise (USA)"), wxT("Faveladogame (BR)"), wxT("Malle (DE)") };
	int chcGameNChoices = sizeof( chcGameChoices ) / sizeof( wxString );
	chcGame = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chcGameNChoices, chcGameChoices, 0 );
	chcGame->SetSelection( 0 );
	szrGInner->Add( chcGame, 0, wxALL|wxEXPAND, 5 );
	
	lnkUserAgent = new wxHyperlinkCtrl( this, wxID_ANY, wxT("User-Agent:"), wxT("http://pb.kicks-ass.org/useragent.html"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
	szrGInner->Add( lnkUserAgent, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	tctrlUserAgent = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	szrGInner->Add( tctrlUserAgent, 0, wxALL|wxEXPAND, 5 );
	
	stxtProxy = new wxStaticText( this, wxID_ANY, wxT("[Proxy:]"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtProxy->Wrap( -1 );
	szrGInner->Add( stxtProxy, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	tctrlProxy = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	szrGInner->Add( tctrlProxy, 0, wxALL|wxEXPAND, 5 );
	
	szrGeneral->Add( szrGInner, 1, wxEXPAND, 5 );
	
	szrMain->Add( szrGeneral, 1, wxALL|wxEXPAND, 5 );
	
	wxStaticBoxSizer* szrBottleCollect;
	szrBottleCollect = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("BottleCollect") ), wxVERTICAL );
	
	wxFlexGridSizer* szrBCInner;
	szrBCInner = new wxFlexGridSizer( 5, 3, 0, 0 );
	szrBCInner->SetFlexibleDirection( wxBOTH );
	szrBCInner->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	stxtBCEnabled = new wxStaticText( this, wxID_ANY, wxT("Enabled:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCEnabled->Wrap( -1 );
	szrBCInner->Add( stxtBCEnabled, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	chkBCEnabled = new wxCheckBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
	szrBCInner->Add( chkBCEnabled, 0, wxALL, 5 );
	
	
	szrBCInner->Add( 0, 0, 1, wxEXPAND, 5 );
	
	stxtBCMinWait = new wxStaticText( this, wxID_ANY, wxT("Minimal wait time:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCMinWait->Wrap( -1 );
	szrBCInner->Add( stxtBCMinWait, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	spinBCMinWait = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 300, 15 );
	szrBCInner->Add( spinBCMinWait, 0, wxALL, 5 );
	
	stxtBCMinWaitUnit = new wxStaticText( this, wxID_ANY, wxT("sec"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCMinWaitUnit->Wrap( -1 );
	szrBCInner->Add( stxtBCMinWaitUnit, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	stxtBCMaxWait = new wxStaticText( this, wxID_ANY, wxT("Maximal wait time:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCMaxWait->Wrap( -1 );
	szrBCInner->Add( stxtBCMaxWait, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	spinBCMaxWait = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 600, 35 );
	szrBCInner->Add( spinBCMaxWait, 0, wxALL, 5 );
	
	stxtBCMaxWaitUnit = new wxStaticText( this, wxID_ANY, wxT("sec"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCMaxWaitUnit->Wrap( -1 );
	szrBCInner->Add( stxtBCMaxWaitUnit, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	stxtBCThirtyMin = new wxStaticText( this, wxID_ANY, wxT("30min probability:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCThirtyMin->Wrap( -1 );
	szrBCInner->Add( stxtBCThirtyMin, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	spinBCThirtyMin = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 0 );
	szrBCInner->Add( spinBCThirtyMin, 0, wxALL, 5 );
	
	stxtBCThirtyMinUnit = new wxStaticText( this, wxID_ANY, wxT("%"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCThirtyMinUnit->Wrap( -1 );
	szrBCInner->Add( stxtBCThirtyMinUnit, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	stxtBCUseJunk = new wxStaticText( this, wxID_ANY, wxT("Use junk engine:"), wxDefaultPosition, wxDefaultSize, 0 );
	stxtBCUseJunk->Wrap( -1 );
	szrBCInner->Add( stxtBCUseJunk, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
	
	chkBCUseJunk = new wxCheckBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
	szrBCInner->Add( chkBCUseJunk, 0, wxALL, 5 );
	
	
	szrBCInner->Add( 0, 0, 1, wxEXPAND, 5 );
	
	szrBottleCollect->Add( szrBCInner, 1, wxEXPAND, 5 );
	
	szrMain->Add( szrBottleCollect, 1, wxALL|wxEXPAND, 5 );
	
	m_sdbSizer4 = new wxStdDialogButtonSizer();
	m_sdbSizer4OK = new wxButton( this, wxID_OK );
	m_sdbSizer4->AddButton( m_sdbSizer4OK );
	m_sdbSizer4Cancel = new wxButton( this, wxID_CANCEL );
	m_sdbSizer4->AddButton( m_sdbSizer4Cancel );
	m_sdbSizer4->Realize();
	szrMain->Add( m_sdbSizer4, 1, wxEXPAND, 5 );
	
	this->SetSizer( szrMain );
	this->Layout();
	szrMain->Fit( this );
	
	this->Centre( wxBOTH );
}

DlgSettings::~DlgSettings()
{
}
